[USER (data scientist)]: Perfect! Now, let's go ahead and apply one-hot encoding to those variables. Can you help me with that? Please generate the code with the output in dataframe type.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd  
import pickle
from decision_company import read_csv_file, get_dummies

# Load the dataset  
credit_customers = read_csv_file("credit_customers.csv")  
  
# YOUR SOLUTION BEGIN:
<code1>
[GENERATE YOUR CODE]  
</code1>
# YOUR SOLUTION END

print("credit_customers_encoded:\n", credit_customers_encoded)    

# save data
pickle.dump(credit_customers_encoded,open("./pred_result/credit_customers_encoded.pkl","wb"))

---END CODE TEMPLATE---

[YOU (AI assistant)]: Sure thing! Here's the code to apply one-hot encoding to the nominal categorical variables:

# MY SOLUTION BEGIN:
